/*   Shotscreens
 *   Copyright (C) 2010, Vadim Zakondyrin (http://crystalnix.com)
 *
 *   This program is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef UPLOADERINTERFACE_H
#define UPLOADERINTERFACE_H

#include <QtPlugin>

class QDialog;
class QString;
class QByteArray;
class QSettings;

class UploaderInterface
{
   // Q_OBJECT;
public:
    virtual ~UploaderInterface() {}
   /* virtual QString getNameOfService() const = 0;
    virtual bool uploadMemory(const QByteArray &data) = 0;
    virtual bool uploadFile(const QString &path) = 0;
    virtual void setLoginAndPassword(const QString &login, const QString &password) = 0;
    virtual bool saveSettings(QSettings *settings) = 0;
    virtual bool loadSettings(const QSettings *settings) = 0;
    */virtual void ShowOptions(QDialog* settingsWindowDraft)=0;
      //virtual bool ShowOptions() = 0;
    //virtual bool ShowAbout()=0;
    virtual void GetPluginVersion(int &version,int &subversion) =0;
    //***
    virtual void SetLoginAndPassword(QString login, QString password) = 0;
    virtual void GetPluginName(QString &dest_buffer) = 0;
    //virtual void GetPluginThumbnail(QIcon &dest_icon) = 0;
    virtual bool UploadStream(QByteArray &streamData) = 0;
    virtual bool UploadFile(QString fileName) = 0;
signals:
    void OnPluginCreate();

    void OnPluginClose();



    //*****
};

Q_DECLARE_INTERFACE(UploaderInterface, "shotscreen.uploader/1.0")

#endif // UPLOADERINTERFACE_H
